#ifndef SHOWINFO_H
#define SHOWINFO_H

#include <QMainWindow>

#include <QSqlQuery>
#include <QSqlQueryModel>
#include <incar.h>

#include "outcar.h"

namespace Ui {
class ShowInfo;
}

class ShowInfo : public QMainWindow
{
    Q_OBJECT

public:
    explicit ShowInfo(QWidget *parent = nullptr);
    ~ShowInfo();

    void showView();
    QSqlQuery *query;
    QSqlQueryModel *model;
    QSqlQuery* query_1;
    QSqlQuery* query_2;
    QSqlQueryModel* model_1;
    InCar *newInCar;
    OutCar *newOutCar;
    int count;
    int biandao;
    QString sum;
private slots:
    void on_pushButton_in_clicked();

    void on_pushButton_out_clicked();

    void on_pushButton_refresh_clicked();

    void on_pushButton_clear_clicked();

    void on_pushButton_find_clicked();

    void on_pushButton_exit_clicked();

private:
    Ui::ShowInfo *ui;




};

#endif // SHOWINFO_H
